#include "rtp2flv.h"

int main(int argc, char *argv[]){
	printf("123\n");
	if (argc <3)
	{
		printf("please input 3 params:\nfirst inputfile-string,\nsecond outputfile-string,\nthird rtptimebase-int\n");
		return 0;
	}

        printf("%s %s %s\n", argv[1], argv[2], argv[3]);


	FILE * fp = fopen(argv[1],"rb");
	if (fp == NULL)
	{
		printf("openfile failed filename=%s", argv[1]);
		return 0;
	}

        printf("%s %s %s\n", argv[1], argv[2], argv[3]);

	char * flv = argv[2];
	unsigned int rtptimebase = atoi(argv[3]);
	//rtptimebase/=fps;
	printf("start\n");
	rtp2flv(fp, flv, rtptimebase );
	return 0;
}
